package com.egao.common.component.scheduled;

import com.egao.common.module.counsel.service.CounselStudentService;
import com.egao.common.module.pushInformation.service.PushInformationService;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiOperation;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * 推送信息定时器
 *
 * @author lym
 * @date 2024/8/30 14:28
 */
@ApiModel(description = "推送信息定时器")
@Component
public class PushInformationScheduled {

    @Resource
    private PushInformationService pushInformationService;

    @Scheduled(cron = "0 0 20 ? * *")
    @ApiOperation("每天20点给学生推送精准匹配就业信息")
    public void scheduledPushMsg() {
        pushInformationService.push();
    }



}
